package controllers;

import models.*;
import play.db.jpa.GenericModel;
import play.mvc.Controller;
import java.util.*;


public class ApplicationWebService extends Controller {
	
    public static void getAllTypes() {
    	List<Type> allTypes = GenericModel.findAll();
        renderXml(allTypes);
    }
    
    public static void getAllCities() {
    	List<City> allCities = GenericModel.findAll();
        renderXml(allCities);
    }
    
    public static void getAllTourItems() {
    	List<ToursicItem> allTourItems = GenericModel.findAll();
        renderXml(allTourItems);
    }

}